#!/bin/bash

allow=0
nolog=0
for user in $(cat /etc/passwd);do
    if echo "$user" | grep ":/bin/bash$" &>/dev/null;then
         let allow=$allow+1
    elif
        echo "$user" | grep ":/sbin/nologin$" &>/dev/null;then 
         let nolog=$nolog+1
    fi

    done
echo "$allow"
echo "$nolog"
